set XULRUNNER_HOME=%PROGRAMFILES%\xulrunner-sdk
set DOWNLOADBINNING_HOME=%HOMEDRIVE%%HOMEPATH%\downloadbinning

"%XULRUNNER_HOME%\bin\xpidl.exe" -m typelib -w -v -I "%XULRUNNER_HOME%\idl" -e "%DOWNLOADBINNING_HOME%\components\DownloadBinning.xpt" "%DOWNLOADBINNING_HOME%\components\DownloadBinning.idl"
"%XULRUNNER_HOME%\bin\xpidl.exe" -m typelib -w -v -I "%XULRUNNER_HOME%\idl" -e "%DOWNLOADBINNING_HOME%\components\DownloadBinningRule.xpt" "%DOWNLOADBINNING_HOME%\components\DownloadBinningRule.idl"

::set PROFILE_NAME="jgvh3snv.default"
::set PROFILE_DIR="%APPDATA%\Mozilla\Firefox\Profiles\%PROFILE_NAME%"
::set EXTENSION_DIR="%PROFILE_DIR%\extensions"

:: Remove compreg.dat and xpti.dat
::del "%PROFILE_DIR%\compreg.dat"
::del "%PROFILE_DIR%\xpti.dat"

cmd
